package com.shang.mapper;

import com.shang.my.mapper.MyMapper;
import com.shang.pojo.Items;
import com.shang.pojo.vo.ItemCommentVO;
import com.shang.pojo.vo.SearchItemsVO;
import com.shang.pojo.vo.ShopCartVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItemsMapperCustom {
    public List<ItemCommentVO> queryItemComments(@Param("paramsMap") Map<String,Object> map);

    public List<SearchItemsVO> searchItems(@Param("paramsMap") Map<String,Object> map);
    public List<SearchItemsVO> searchItemsByThirdCat(@Param("paramsMap") Map<String,Object> map);
    public List<ShopCartVO> queryItemsBySpecIds(@Param("paramsList") List specIdList);
    public int decreaseItemSpecStock(@Param("specId") String specId,@Param("pendingCounts") int pendingCounts);
}